import request from '@/utils/request'

// 查询OMS销售退货单列表
export function listSalereturnbill(query) {
  return request({
    url: '/settlementCenter/basebill/salereturnbill/list',
    method: 'get',
    params: query
  })
}

// 查询OMS销售退货单详细
export function getSalereturnbill(id) {
  return request({
    url: '/settlementCenter/basebill/salereturnbill/' + id,
    method: 'get'
  })
}

// 新增OMS销售退货单
export function addSalereturnbill(data) {
  return request({
    url: '/settlementCenter/basebill/salereturnbill',
    method: 'post',
    data: data
  })
}

// 修改OMS销售退货单
export function updateSalereturnbill(data) {
  return request({
    url: '/settlementCenter/basebill/salereturnbill',
    method: 'put',
    data: data
  })
}

// 删除OMS销售退货单
export function delSalereturnbill(id) {
  return request({
    url: '/settlementCenter/basebill/salereturnbill/' + id,
    method: 'delete'
  })
}
